{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<style>
#huiedit{
	background-color: #1ab394;
	color: #FFFFFF;
}
#huidel{
	background-color: #ed5565;
	color: #FFFFFF;
}
#hui{
	 width: 50px;
        height: 50px;
}
.dl-horizontals dt{
	float: left;
	width: 85px;
	overflow: hidden;
	clear: left;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dl-horizontals dd {
	
    margin-left: 10px;
}


</style>
</head>

<body class="gray-bg">
    <div class="row">
        <div class="col-sm-9">
            <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox-title">
                        <h5>所有项目</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Hunanconstr/project_list')}" class="btn btn-primary btn-xs">返回列表</a>
                        </div>
                    </div>
                <div class="ibox">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="m-b-md">
                                    
                                    <h2>{$res.item_name}</h2>
                                </div>
                                <dl class="dl-horizontal">
                                    <dt>状态：</dt>
                                    <dd>
                                    {if condition="$res.project_status eq 1"}
                                        <span class="label label-primary">进行中</span>
                                        {elseif condition="$res.project_status eq 0"}
                                        <span class="label label-default">滞后中</span>
                                        {elseif condition="$res.project_status eq 2"}
                                        <span class="label label-primary">已完成</span>
                                        {/if}
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4">
                                <dl class="dl-horizontal">

                                    <dt>项目名称：</dt>
                                    <dd>{$res.project_name}</dd>
                                    <dt>省份：</dt>
                                    <dd>{$res.province_id}</dd>
                                    <dt>城市：</dt>
                                    <dd>{$res.city_id}</dd>
                                    <dt>街道地址：</dt>
                                    <dd>{$res.address}</dd>
                                    <dt>项目经度：</dt>
                                    <dd>{$res.lng}</dd>
                                    <dt>项目纬度：</dt>
                                    <dd>{$res.lat}</dd>
                                    <dt>邀请码：</dt>
                                    <dd>{$res.code}</dd>
                                    <dt>团队成员：</dt>
						             <dd class="project-people">
						             {foreach name="arr" id="vo" key="key"}
						                 <a href="{:url('admin/Hunanconstr/contacts',['id'=>$res.id])}">
						                     <img alt="image" class="img-circle" src="{$vo.head_img}">
						                 </a>
						             {/foreach}
						             </dd>
                                </dl>
                            </div>
                            <div class="col-sm-4" id="cluster_info">
                                <dl class="dl-horizontal">
                                	<dt>施工单位：</dt>
                                    <dd>{$res.construction_unit}</dd>
									<dt>总建筑面积：</dt>
                                    <dd>{$res.total_area}m²</dd>
                                    <dt>工程造价：</dt>
                                    <dd>{$res.plan_output_total}万</dd>
                                    <dt>楼栋总数：</dt>
                                    <dd>{$res.can_count}栋</dd>
                                    <dt>主体完成面积：</dt>
                                    <dd>{$res.finished_area}m²</dd>
                                    <dt>装修完成面积：</dt>
                                    <dd>{$res.renovation_area}m²</dd>
                                    <dt>累计完成产值：</dt>
                                    <dd>{$res.finished_output}万</dd>
                                    <dt>回收工程款：</dt>
                                    <dd>{$res.recovery_money}万</dd>
                                   
                                </dl>
                            </div>
                            <div class="col-sm-4" id="cluster_info">
                                <dl class="dl-horizontal">
                                	<dt>建设单位：</dt>
                                    <dd>{$res.contract_unit}</dd>
                                	<dt>设计单位：</dt>
                                    <dd>{$res.design_unit}</dd>
                                	<dt>监理单位：</dt>
                                    <dd>{$res.supervisor_unit}</dd>
                                    <dt>开工时间：</dt>
                                    <dd>{$res.event_time}</dd>
                                    <dt>竣工时间：</dt>
                                    <dd>{$res.plan_finish_time}</dd>
									<dt>创建更新：</dt>
                                    <dd>{$res.create_time|date="Y-m-d H:i:s",###}</dd>
                                    <dt>最后更新：</dt>
                                    <dd>{$res.update_time|date="Y-m-d H:i:s",###}</dd>
                                </dl>
                            </div>
                        <div class="row">
                            <div class="col-sm-12">
                                <dl class="dl-horizontal">
                                    <dt>当前进度</dt>
                                    <dd>
                                        <div class="progress progress-striped active m-b-sm">
                                            <div style="width: {$res.progress}%;" class="progress-bar"></div>
                                        </div>
                                        <small>当前已完成项目总进度的 <strong>{$res.progress}%</strong></small>
                                    </dd>
                                </dl>
                                <dl class="dl-horizontal">
                                    <dt>活跃度 </dt>
                                    <dd>
                                        <div class="progress progress-striped active m-b-sm">
                                            <div style="width: {$res.activity_degree}%;background-color:#FFFF66;" class="progress-bar"></div>
                                        </div>
                                        <!--  <small>当前已完成项目总进度的 <strong>{$res.activity_degree}</strong></small>-->
                                    </dd>
                                </dl>
                                <dl class="dl-horizontal">
                                    <dt>公司回款率 </dt>
                                    <dd>
                                        <div class="progress progress-striped active m-b-sm">
                                            <div style="width: {$res.pay_rank}%;background-color:#3300FF;" class="progress-bar"></div>
                                        </div>
                                        <!--<small>当前已完成项目总进度的 <strong>{$res.pay_rank}%</strong></small>-->
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        
                    </div>
                </div>
            </div>
        </div>
        
    </div>
	{include file="public/hunanconstr_footer" /}
    <!-- 全局js -->
    <script src="__PUBLIC_ADMIN__js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC_ADMIN__js/bootstrap.min.js?v=3.3.6"></script>



    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>


    <script>
        $(document).ready(function () {

            $('#loading-example-btn').click(function () {
                btn = $(this);
                simpleLoad(btn, true)

                // Ajax example
                //                $.ajax().always(function () {
                //                    simpleLoad($(this), false)
                //                });

                simpleLoad(btn, false)
            });
        });

        function simpleLoad(btn, state) {
            if (state) {
                btn.children().addClass('fa-spin');
                btn.contents().last().replaceWith(" Loading");
            } else {
                setTimeout(function () {
                    btn.children().removeClass('fa-spin');
                    btn.contents().last().replaceWith(" Refresh");
                }, 2000);
            }
        }
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
    <!--统计代码，可删除-->

</body>

</html>
